package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by tang on 2019/1/15.
 */

public class NewProductInfo implements Parcelable{

    private String quoteName;
    private Object worthPrice;
    private Object upCount;
    private Object couponType;
    private String productPic;
    private String lastPrice;
    private String openPrice;
    private long endTime;
    private String lowPrice;
    private Object remainCount;
    private double plratio;
    private int productId;
    private String closePrice;
    private double fee;
    private Object startTime;
    private Object detailPic;
    private Object ticketId;
    private double price;
    private String area;
    private String highPrice;
    private Object areaName;
    private String name;
    private Object ccNum;
    private String repertoryStatus;

    protected NewProductInfo(Parcel in) {
        quoteName = in.readString();
        productPic = in.readString();
        lastPrice = in.readString();
        openPrice = in.readString();
        endTime = in.readLong();
        lowPrice = in.readString();
        plratio = in.readDouble();
        productId = in.readInt();
        closePrice = in.readString();
        fee = in.readDouble();
        price = in.readDouble();
        area = in.readString();
        highPrice = in.readString();
        name = in.readString();
        repertoryStatus = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(quoteName);
        dest.writeString(productPic);
        dest.writeString(lastPrice);
        dest.writeString(openPrice);
        dest.writeLong(endTime);
        dest.writeString(lowPrice);
        dest.writeDouble(plratio);
        dest.writeInt(productId);
        dest.writeString(closePrice);
        dest.writeDouble(fee);
        dest.writeDouble(price);
        dest.writeString(area);
        dest.writeString(highPrice);
        dest.writeString(name);
        dest.writeString(repertoryStatus);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<NewProductInfo> CREATOR = new Creator<NewProductInfo>() {
        @Override
        public NewProductInfo createFromParcel(Parcel in) {
            return new NewProductInfo(in);
        }

        @Override
        public NewProductInfo[] newArray(int size) {
            return new NewProductInfo[size];
        }
    };

    public String getQuoteName() {
        return quoteName;
    }

    public void setQuoteName(String quoteName) {
        this.quoteName = quoteName;
    }

    public Object getWorthPrice() {
        return worthPrice;
    }

    public void setWorthPrice(Object worthPrice) {
        this.worthPrice = worthPrice;
    }

    public Object getUpCount() {
        return upCount;
    }

    public void setUpCount(Object upCount) {
        this.upCount = upCount;
    }

    public Object getCouponType() {
        return couponType;
    }

    public void setCouponType(Object couponType) {
        this.couponType = couponType;
    }

    public String getProductPic() {
        return productPic;
    }

    public void setProductPic(String productPic) {
        this.productPic = productPic;
    }

    public String getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(String lastPrice) {
        this.lastPrice = lastPrice;
    }

    public String getOpenPrice() {
        return openPrice;
    }

    public void setOpenPrice(String openPrice) {
        this.openPrice = openPrice;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getLowPrice() {
        return lowPrice;
    }

    public void setLowPrice(String lowPrice) {
        this.lowPrice = lowPrice;
    }

    public Object getRemainCount() {
        return remainCount;
    }

    public void setRemainCount(Object remainCount) {
        this.remainCount = remainCount;
    }

    public double getPlratio() {
        return plratio;
    }

    public void setPlratio(double plratio) {
        this.plratio = plratio;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getClosePrice() {
        return closePrice;
    }

    public void setClosePrice(String closePrice) {
        this.closePrice = closePrice;
    }

    public double getFee() {
        return fee;
    }

    public void setFee(double fee) {
        this.fee = fee;
    }

    public Object getStartTime() {
        return startTime;
    }

    public void setStartTime(Object startTime) {
        this.startTime = startTime;
    }

    public Object getDetailPic() {
        return detailPic;
    }

    public void setDetailPic(Object detailPic) {
        this.detailPic = detailPic;
    }

    public Object getTicketId() {
        return ticketId;
    }

    public void setTicketId(Object ticketId) {
        this.ticketId = ticketId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getHighPrice() {
        return highPrice;
    }

    public void setHighPrice(String highPrice) {
        this.highPrice = highPrice;
    }

    public Object getAreaName() {
        return areaName;
    }

    public void setAreaName(Object areaName) {
        this.areaName = areaName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getCcNum() {
        return ccNum;
    }

    public void setCcNum(Object ccNum) {
        this.ccNum = ccNum;
    }

    public String getRepertoryStatus() {
        return repertoryStatus;
    }

    public void setRepertoryStatus(String repertoryStatus) {
        this.repertoryStatus = repertoryStatus;
    }

    @Override
    public String toString() {
        return "NewProductInfo{" +
                "quoteName='" + quoteName + '\'' +
                ", worthPrice=" + worthPrice +
                ", upCount=" + upCount +
                ", couponType=" + couponType +
                ", productPic='" + productPic + '\'' +
                ", lastPrice='" + lastPrice + '\'' +
                ", openPrice='" + openPrice + '\'' +
                ", endTime=" + endTime +
                ", lowPrice='" + lowPrice + '\'' +
                ", remainCount=" + remainCount +
                ", plratio=" + plratio +
                ", productId=" + productId +
                ", closePrice='" + closePrice + '\'' +
                ", fee=" + fee +
                ", startTime=" + startTime +
                ", detailPic=" + detailPic +
                ", ticketId=" + ticketId +
                ", price=" + price +
                ", area='" + area + '\'' +
                ", highPrice='" + highPrice + '\'' +
                ", areaName=" + areaName +
                ", name='" + name + '\'' +
                ", ccNum=" + ccNum +
                ", repertoryStatus='" + repertoryStatus + '\'' +
                '}';
    }
}
